//
// Created by lymk on 2022/3/13.
//

#ifndef SOFTRENDER_SPHEREMESH_H
#define SOFTRENDER_SPHEREMESH_H
#include "IMesh.h"

class SphereMesh : public IMesh{
    glm::vec3 center;
    float radius;
    glm::vec4 color;
    std::vector<glm::vec3> point;
    std::vector<std::vector<int>> index;
public:
    SphereMesh(glm::vec3 c,float r);

    void Init(int ver,int hor);

    void GetVertex(std::vector<VertexIn> &InVertex,std::vector<std::vector<int>>& idx) override;
};


#endif //SOFTRENDER_SPHEREMESH_H
